<layout name="Layout/StoreHead" />

<!-- Content -->

<section class="container page-single">
	<div class="wrap-container zerogrid">
<?php
	$Upload_root = "__PUBLIC__/img/Review/store/shop_upload/";
?>
		<div class="col-2-3">
			<div id="main-content" class="wrap-col">
				<article class="single">
					<div class="art-header">
						<a href="#">
						<!-- <img src="__PUBLIC__/img/Review/store/img1.jpg" /> -->
						<img src="<?php echo $Upload_root.$store_info[0]['pic'];?>"/>
						</a>
						<div class="info-single bg-red">
							<ul class="clearfix">
								<li>
								<a href="#"><img src="__PUBLIC__/img/Review/store/avatar.png"/>
								<?php echo "经营者:".$store_info[0]['owner']; ?>
								</a>
								</li>
								<li><a href="#">开店时间:March 1, 2015</a></li>
								<li><a href="#">平均分:{$avg_score}</a></li>
								<li class="last"><a href="#">Leave a comment</a></li>
							</ul>
						</div>
					</div>
					<div class="art-content">
						<div class="main-post">
							<h2 class="title"><a href="#"><?php echo $store_info[0]['sname']; ?></a></h2>
							<p class="entry-meta">Posted on <a href="#">February 1, 2015</a> by vlad</p>
							<p><?php echo "店铺描述:<br/>".$store_info[0]['sdetail']; ?></p>
							



							<h2 class="title"><a href="#">评价列表</a></h2>
							<?php
							foreach($store_reviews_info as $key => $value)
							{
							?>
							<h3><?php echo "评价#".$value['rid']; ?></h3>
							<blockquote><p><?php echo "评论人:#".$value['uid']."  评分:".$value['score']."<br/>评价详情:".$value['rdetail']; ?></p></blockquote>
							<?php
							}
							?>

							<div>
								<form action="{:U('Store/add_review')}" method="POST">
									<input type="hidden" name="sid" value="<?php echo $store_info[0]['sid']; ?>">
									<input type="submit" name="submit" value="添加评论">
								</form>
							</div>
							<div class="row">
								<div class="content-social">
									<a href="#"><img src="__PUBLIC__/img/Review/store/facebookb.png" title=""/></a>
									<a href="#"><img src="__PUBLIC__/img/Review/store/twitterb.png" title=""/></a>
									<a href="#"><img src="__PUBLIC__/img/Review/store/googleb.png" title=""/></a>
									<a href="#"><img src="__PUBLIC__/img/Review/store/pinterestb.png" title=""/></a>
									<a href="#"><img src="__PUBLIC__/img/Review/store/instagramb.png" title=""/></a>
								</div>
							</div>
						</div>
					</div>
				</article>
				<article>
					<div class="art-related">
						<div class="wrap-art-related">
							<h1 class="title"><a href="#">Related Posts</a></h1>
							<div class="row">
								<div class="col-1-3"><div class="wrap-col">
									<a href="#"><img src="__PUBLIC__/img/Review/store/thumb2.jpg"></a>
									<a href="#"><h4>Grandma's Village</h4></a>
								</div></div>
								<div class="col-1-3"><div class="wrap-col"></a>
									<a href="#"><img src="__PUBLIC__/img/Review/store/thumb4.jpg">
									<a href="#"><h4>Wind</h4></a>
								</div></div>
								<div class="col-1-3"><div class="wrap-col"></a>
									<a href="#"><img src="__PUBLIC__/img/Review/store/thumb3.jpg">
									<a href="#"><h4>Animal Kingdom</h4></a>
								</div></div>
							</div>
						</div>
					</div>
				</article>
			</div>
		</div>
		<div class="col-1-3">
			<div id="sidebar" class="wrap-col">
				<div class="wrap-slidebar">
					<div class="widget wid-about">
						<div class="wid-header">
							<a href="#"><img src="__PUBLIC__/img/Review/store/49.jpg"></a>
							<h4>About Us</h4>
						</div>
						<div class="wid-content">
							<p>Hey there! I'm Elaine - a web designer + front-end developer from Ireland. 
							I work with bloggers and other passionate creatives to create a design that reflects them and helps them grow their audience!</p>
						</div>
					</div>
					<div class="widget">
						<div class="wid-header">
							<h4>Tags</h4>
						</div>
						<div class="wid-content">
							<a href="#">animals ,</a>
							<a href="#">cooking ,</a>
							<a href="#">countries ,</a>
							<a href="#">home ,</a>
							<a href="#">likes ,</a>
							<a href="#">photo ,</a>
							<a href="#">travel ,</a>
							<a href="#">video </a>
						</div>
					</div>
					<div class="widget wid-posts">
						<div class="wid-header">
							<h4>Latest Posts</h4>
						</div>
						<div class="wid-content">
							<div class="row post">
								<a href="#"><img src="__PUBLIC__/img/Review/store/thumb4.jpg"/></a>
								<div class="resent">
								  <h6><a href="#">Lorem ipsum sit amet</a></h6><br>
								  <p>March 1, 2015</p>
								</div>
							</div>
							<div class="row post">
								<a href="#"><img src="__PUBLIC__/img/Review/store/thumb5.jpg"/></a>
								<div class="resent">
								  <h6><a href="#">Lorem ipsum dolor sit</a></h6><br>
								  <p>March 1, 2015</p>
								</div>
							</div>
							<div class="row post">
								<a href="#"><img src="__PUBLIC__/img/Review/store/thumb6.jpg"/></a>
								<div class="resent">
								  <h6><a href="#">Lorem sit amet</a></h6><br>
								  <p>March 1, 2015</p>
								</div>
							</div>
						</div>
					</div>
					<div class="widget wid-archives">
						<div class="wid-header">
							<h4>Archives</h4>
						</div>
						<div class="wid-content">
							<select>
							    <option value="empty" selected>Select Month</option>
								<option value="3">March 2015</option>
								<option value="2">Febuary 2015</option>
								<option value="1">January 2015</option>
							</select>
						</div>
					</div>
					<div class="widget wid-flick">
						<div class="wid-header">
							<h4>Flick</h4>
						</div>
						<div class="wid-content">
							<div class="row">
								<div class="col-1-2">
									<div class="wrap-col">	
										<a href="#"><img src="__PUBLIC__/img/Review/store/thumb1.jpg"></a>
									</div>
								</div>	
								<div class="col-1-2">
									<div class="wrap-col">	
										<a href="#"><img src="__PUBLIC__/img/Review/store/thumb5.jpg"></a>
									</div>
								</div>
							</div>
							<div class="row">
								<div class="col-1-2">
									<div class="wrap-col">	
										<a href="#"><img src="__PUBLIC__/img/Review/store/thumb2.jpg"></a>
									</div>
								</div>	
								<div class="col-1-2">
									<div class="wrap-col">	
										<a href="#"><img src="__PUBLIC__/img/Review/store/thumb4.jpg"></a>
									</div>
								</div>
							</div>
							<div class="row">
								<div class="col-1-2">
									<div class="wrap-col">	
										<a href="#"><img src="__PUBLIC__/img/Review/store/thumb3.jpg"></a>
									</div>
								</div>	
								<div class="col-1-2">
									<div class="wrap-col">	
										<a href="#"><img src="__PUBLIC__/img/Review/store/thumb6.jpg"></a>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</section>